﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExportDeclarationsRptList.aspx.cs"
    Inherits="WMS6.Web.Analytics.ExportDeclarationsRptList" %>

<%@ PreviousPageType VirtualPath="~/Analytics/ExportDeclarationsRptQuery.aspx" %>
<%@ Register Src="../UserControls/Pager.ascx" TagName="Pager" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>ExportDeclarationsRptList</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" id="js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <base target="_self" />

    <script type="text/javascript">
        //初始化页面
        window.onload = function() {

            var action = document.getElementById("hdnActionID").value;
            if (action != null && action != "") {
                var array = action.split(',');
                initQueryPage(array[0], array[1]);
            }
            else {
                initListPage();
            }
        }
        function returnSearch()
        {
            var from = document.getElementById("hdnFrom").value;
            if(from != "")
            {
                window.location.href = "ExportDeclarationsRptQuery.aspx";
            }
            else
            {
                window.history.go(-1);
            }
        }
    </script>

</head>
<body>
    <form id="F15521" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_List_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblExportDeclarationsRpt" runat="server" CssClass="label_header" Text="出区报关报告"
                            meta:resourcekey="lblExportDeclarationsRpt"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnRefresh" runat="server" CssClass="button" Enabled="false" Text="<%$ Resources:ButtonResource,btnRefresh %>"
                            OnClick="btnRefresh_Click" />
                    </td>
                </tr>
            </table>
        </div>
        <div class="blank8">
        </div>
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div id="div_List">
                    <div id="div_List_msg">
                        <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg"></asp:Label>
                    </div>
                    <asp:GridView ID="gvExportDeclarationsRpt" runat="server" AutoGenerateColumns="False"
                        AllowSorting="True" CssClass="gridview" OnRowDataBound="gvExportDeclarationsRpt_RowDataBound"
                        OnInit="gvExportDeclarationsRpt_Init" OnSorting="gvExportDeclarationsRpt_Sorting"
                        DataKeyNames="DECLARATIONS_ID,DECLARATIONS_DATE" PageSize="20" Width="2050px">
                        <FooterStyle CssClass="GridViewFooterStyle" />
                        <RowStyle CssClass="GridViewRowStyle" />
                        <HeaderStyle CssClass="GridViewHeaderStyle" />
                        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                        <Columns>
                            <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="No">
                                <ItemStyle CssClass="GridViewRowWidth_40" />
                            </asp:BoundField>
                            <asp:TemplateField meta:resourcekey="TemplateFieldResource1">
                                <HeaderTemplate>
                                    <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('15521','gvExportDeclarationsRpt');"
                                        onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                    <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvExportDeclarationsRpt');" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelectResource1" />
                                </ItemTemplate>
                                <FooterTemplate>
                                    <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvExportDeclarationsRpt');" />
                                </FooterTemplate>
                                <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="申报日期" HeaderText="申报日期" SortExpression="DECLARATIONS_DATE"
                                meta:resourcekey="DECLARATIONS_DATE">
                                <ItemTemplate>
                                    <asp:Label ID="lblDeclarationsDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("DECLARATIONS_DATE").ToString()) %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_200" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="DECLARATIONS_ID" HeaderText="出区报关单号" FooterText="出区报关单号"
                                SortExpression="DECLARATIONS_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="COMPANY_DECLARATIONGS_ID" HeaderText="企业出口报关单号" FooterText="企业出口报关单号"
                                SortExpression="COMPANY_DECLARATIONGS_ID">
                                <ItemStyle CssClass="GridViewRowWidth_150" />
                            </asp:BoundField>
                            <asp:BoundField DataField="VERIFICATION_FORM_ID" HeaderText="核销单号" FooterText="核销单号"
                                SortExpression="VERIFICATION_FORM_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="OWNER_ID" HeaderText="货主代码" FooterText="货主代码" SortExpression="OWNER_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="OWNER_ORDER_ID" HeaderText="货主订单号" FooterText="货主订单号"
                                SortExpression="OWNER_ORDER_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="SKU_ID" HeaderText="货品代码" FooterText="货品代码" SortExpression="SKU_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:TemplateField FooterText="货品描述" HeaderText="货品描述" SortExpression="SKU_DESCR"
                                meta:resourcekey="SKU_DESCR">
                                <ItemTemplate>
                                    <asp:Label ID="lblSkuDescr" runat="server" Text='<%# Eval("SKU_DESCR").ToString() %>'
                                        meta:resourcekey="lblSkuDescr"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_200" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="ITEM_NO_ID" HeaderText="项号" FooterText="项号" SortExpression="ITEM_NO_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:TemplateField FooterText="项号名称" HeaderText="项号名称" SortExpression="ITEM_NO_DESCR"
                                meta:resourcekey="ITEM_NO_DESCR">
                                <ItemTemplate>
                                    <asp:Label ID="lblItemNoDescr" runat="server" Text='<%# Eval("ITEM_NO_DESCR").ToString() %>'
                                        meta:resourcekey="lblItemNoDescr"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_200" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="ITEM_NO_UOM" HeaderText="项号单位" FooterText="项号单位" SortExpression="ITEM_NO_UOM"
                                meta:resourcekey="ITEM_NO_UOM">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:TemplateField FooterText="报关数量" HeaderText="报关数量" SortExpression="QTY">
                                <ItemTemplate>
                                    <asp:Label ID="lblQty" runat="server" Text='<%# GetPreferenceDigit(Eval("QTY").ToString()) %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="单价" HeaderText="单价" SortExpression="UNIT_PRICE">
                                <ItemTemplate>
                                    <asp:Label ID="lblUnitPrice" runat="server" Text='<%# GetPreferenceDigit(Eval("UNIT_PRICE").ToString()) %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="金额" HeaderText="金额" SortExpression="EXTENDED_PRICE">
                                <ItemTemplate>
                                    <asp:Label ID="lblExtendedPrice" runat="server" Text='<%# GetPreferenceDigit(Eval("EXTENDED_PRICE").ToString()) %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="箱数" HeaderText="箱数" SortExpression="UDF1">
                                <ItemTemplate>
                                    <asp:Label ID="lblUdf1" runat="server" Text='<%# GetPreferenceDigit(Eval("UDF1").ToString()) %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="托数" HeaderText="托数" SortExpression="UDF2">
                                <ItemTemplate>
                                    <asp:Label ID="lblUdf2" runat="server" Text='<%# GetPreferenceDigit(Eval("UDF2").ToString()) %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="毛重" HeaderText="毛重" SortExpression="GROSS_WGT">
                                <ItemTemplate>
                                    <asp:Label ID="lblGrossWgt" runat="server" Text='<%# GetPreferenceDigit(Eval("GROSS_WGT").ToString()) %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="净重" HeaderText="净重" SortExpression="NET_WGT">
                                <ItemTemplate>
                                    <asp:Label ID="lblNetWgt" runat="server" Text='<%# GetPreferenceDigit(Eval("NET_WGT").ToString()) %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="体积" HeaderText="体积" SortExpression="CUBE">
                                <ItemTemplate>
                                    <asp:Label ID="lblCube" runat="server" Text='<%# GetPreferenceDigit(Eval("CUBE").ToString()) %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </div>
                <div id="div_pager">
                    <uc1:Pager ID="PagerFooter" runat="server" OnFirst="btnFirst_Click" OnPrevious="btnPrevious_Click"
                        OnNext="btnNext_Click" OnLast="btnLast_Click" OnGoTo="GoTo_Click" />
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        <div id="div_List_bottom">
            <table>
                <tr>
                    <td>
                        <asp:Button ID="btnNewSearch" runat="server" Text="<%$Resources:ButtonResource,btnNewSearch%>"
                            Enabled="false" CssClass="button" OnClientClick="javascript:window.location.href='ExportDeclarationsRptQuery.aspx';return false;" />
                    </td>
                    <td>
                        <asp:Button ID="btnReSearch" runat="server" Text="<%$Resources:ButtonResource,btnReSearch%>"
                            Enabled="false" CssClass="button" OnClientClick="javascript:returnSearch();return false;" />
                    </td>
                    <td>
                        <asp:Button ID="btnList" runat="server" Text="<%$Resources:ButtonResource,btnList%>"
                            Enabled="false" CssClass="button" OnClick="btnList_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnExport" runat="server" Text="<%$Resources:ButtonResource,btnExport%>"
                            Enabled="false" CssClass="button" OnClick="btnExport_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <input type="hidden" id="hdnFrom" runat="server" />
    <input type="hidden" id="hdnActionID" runat="server" />
    </form>
</body>
</html>
